package cc.vv.btpartyjob.partymanager.adapter

import android.widget.ImageView
import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.partymanager.R
import cc.vv.party.beans.vo.OrgVO

/**
 * 企事业单位adapter
 * Created by Chen.qi on 2018/10/24.
 */
class QiShiYeDanWeiListAdapter(layoutResId: Int) : SimpleCommonAdapter<OrgVO>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: OrgVO, position: Int) {
        val picView = helper.getView<ImageView>(R.id.iv_wangGe_wangGePic)
        val tvWangGe = helper.getView<TextView>(R.id.tv_wangGe_wangGeDesc)
        picView?.setImageResource(R.mipmap.icon_pt_danwei_name)
        tvWangGe?.text = item.name
    }

}